package com.nami.ucenter.infra.acl.repository.user.convertor;

import com.nami.ucenter.domain.model.UserModel;
import com.nami.ucenter.infra.core.mybatis.dataobject.UserDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    UserModel convert(UserDO user);

    UserDO convert(UserModel user);

    List<UserModel> convertList(List<UserDO> users);

    List<UserDO> convertList2(List<UserModel> users);
}
